﻿using VM.Common.Helper;
using VM.Start.Common.Const;

namespace VM.Start.PersistentData
{
    [Serializable]
    public class SystemConfig : NotifyPropertyBase
    {
        #region Singleton
        private static SystemConfig _instance = new SystemConfig();
        public SystemConfig()
        {

        }
        public static SystemConfig Ins
        {
            set { _instance = value; }
            get { return _instance; }
        }
        #endregion
        #region 属性
        /// <summary>
        /// 自动加载布局
        /// </summary>
        private bool _AutoLoadLayout;
        public bool AutoLoadLayout
        {
            get { return _AutoLoadLayout; }
            set
            {
                _AutoLoadLayout = value;
                this.RaisePropertyChanged();
            }
        }

        /// <summary>
        /// 项目名称
        /// </summary>
        private string _ProjectName = "视觉开发";
        public string ProjectName
        {
            get { return _ProjectName; }
            set { _ProjectName = value; this.RaisePropertyChanged(); }
        }

        /// <summary>
        /// 当前语言
        /// </summary>
        private string _CurrentCultureName = LanguageNames.Chinese;
        public string CurrentCultureName
        {
            get { return _CurrentCultureName; }
            set { _CurrentCultureName = value; this.RaisePropertyChanged(); }
        }

        /// <summary>
        /// 方案是否自动加载
        /// </summary>
        private bool _SolutionAutoLoad;
        public bool SolutionAutoLoad
        {
            get { return _SolutionAutoLoad; }
            set { Set(ref _SolutionAutoLoad, value); }
        }
        /// <summary>
        /// 方案链接路径
        /// </summary>
        private string _SolutionPathText;
        public string SolutionPathText
        {
            get { return _SolutionPathText; }
            set { Set(ref _SolutionPathText, value); }
        }

        /// <summary>
        /// 方案是否自动运行
        /// </summary>
        private bool _SolutionAutoRun;
        public bool SolutionAutoRun
        {
            get { return _SolutionAutoRun; }
            set { Set(ref _SolutionAutoRun, value); }
        }

        #endregion

    }
}
